<html>
	<head>
		<title>
			Q&A: <?php echo $data->title; ?>
		</title>
	</head>
	<body>
		<table>
			<tr>
				<td style="vertical-align:top;">
					<?php
					$default = Yii::app()->request->hostInfo;
					$default .= Yii::app()->getModule('qa')->assetsUrl;
					$default .= '/images/gravatar-150.png';
					$firstname = $data->creator->profile->firstname;
					$config = array(
						'email'=>$data->creator->email,
						'hashed'=>false,
						'default'=>$default,
						'size'=>150,
						'rating'=>'PG',
						'htmlOptions'=>array(
							'alt'=>"[$firstname Avatar]",
							'title'=>CHtml::encode($firstname),
							'class'=>'round stroke'
						),
					);
					$this->widget('qa.widgets.GravatarWidget', $config);
					?>
					<div style="text-align: center;">
						<b><?php echo $firstname; ?></b>
					</div>
				</td>
				<td></td>
				<td style="vertical-align:top;">
					<p><b><?php echo $data->title; ?></b></p>
					<?php
					$properties = array('purifyOutput'=>true);
					$this->beginWidget('CMarkdown', $properties);
					echo $data->value;
					$this->endWidget();
					?>
				</td>
			</tr>
		</table>
		<p>
			Click
			<?php
			$route = 'question/view';
			$params = array('id'=>$data->id);
			$url = 'http://' . Yii::app()->request->serverName;
			$url .= $this->createUrl($route, $params);
			$htmlOptions = array(
				'target'=>'_blank',
			);
			echo CHtml::link('here', $url, $htmlOptions);
			?>
			to answer.
		</p>
	</body>
</html>
